home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / workst1a / workstat.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-10-03  |  30.1 KB  |  1,068 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  3. Begin VB.Form Form1 
  4.    Caption         =   "WorkStation2"
  5.    ClientHeight    =   2790
  6.    ClientLeft      =   165
  7.    ClientTop       =   735
  8.    ClientWidth     =   7230
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   2790
  11.    ScaleWidth      =   7230
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin MSComDlg.CommonDialog dlg 
  14.       Left            =   10080
  15.       Top             =   960
  16.       _ExtentX        =   847
  17.       _ExtentY        =   847
  18.       _Version        =   393216
  19.    End
  20.    Begin VB.Timer Timer11 
  21.       Interval        =   10
  22.       Left            =   9000
  23.       Top             =   2160
  24.    End
  25.    Begin VB.Frame Frame5 
  26.       Caption         =   "open/save"
  27.       Height          =   975
  28.       Left            =   7560
  29.       TabIndex        =   54
  30.       Top             =   2280
  31.       Visible         =   0   'False
  32.       Width           =   1215
  33.    End
  34.    Begin VB.Frame Frame4 
  35.       Caption         =   "Alarm"
  36.       Height          =   1095
  37.       Left            =   6600
  38.       TabIndex        =   52
  39.       Top             =   3240
  40.       Visible         =   0   'False
  41.       Width           =   735
  42.       Begin VB.Timer Timer9 
  43.          Enabled         =   0   'False
  44.          Interval        =   1000
  45.          Left            =   240
  46.          Top             =   600
  47.       End
  48.       Begin VB.TextBox Text12 
  49.          Height          =   285
  50.          Left            =   120
  51.          TabIndex        =   53
  52.          Text            =   "5"
  53.          Top             =   240
  54.          Width           =   495
  55.       End
  56.    End
  57.    Begin VB.ComboBox Combo1 
  58.       Height          =   315
  59.       Left            =   3960
  60.       TabIndex        =   51
  61.       Text            =   "10"
  62.       Top             =   3240
  63.       Visible         =   0   'False
  64.       Width           =   615
  65.    End
  66.    Begin VB.CommandButton Command22 
  67.       Caption         =   "Alarm ON"
  68.       Height          =   255
  69.       Left            =   5040
  70.       TabIndex        =   50
  71.       Top             =   3240
  72.       Visible         =   0   'False
  73.       Width           =   975
  74.    End
  75.    Begin VB.PictureBox Picture3 
  76.       Height          =   1150
  77.       Left            =   600
  78.       ScaleHeight     =   1095
  79.       ScaleMode       =   0  'User
  80.       ScaleWidth      =   1440
  81.       TabIndex        =   42
  82.       Top             =   2640
  83.       Visible         =   0   'False
  84.       Width           =   1500
  85.       Begin VB.CommandButton Command21 
  86.          Caption         =   "Done"
  87.          Height          =   375
  88.          Left            =   720
  89.          TabIndex        =   48
  90.          Top             =   720
  91.          Width           =   735
  92.       End
  93.       Begin VB.CommandButton Command20 
  94.          Caption         =   "Help"
  95.          Height          =   375
  96.          Left            =   0
  97.          TabIndex        =   47
  98.          Top             =   720
  99.          Width           =   735
  100.       End
  101.       Begin VB.CommandButton Command19 
  102.          Caption         =   "Version"
  103.          Height          =   375
  104.          Left            =   720
  105.          TabIndex        =   46
  106.          Top             =   360
  107.          Width           =   735
  108.       End
  109.       Begin VB.CommandButton Command18 
  110.          Caption         =   "Alarm"
  111.          Height          =   375
  112.          Left            =   0
  113.          TabIndex        =   45
  114.          Top             =   360
  115.          Width           =   735
  116.       End
  117.       Begin VB.CommandButton Command17 
  118.          Caption         =   "Save"
  119.          Height          =   375
  120.          Left            =   720
  121.          TabIndex        =   44
  122.          Top             =   0
  123.          Width           =   735
  124.       End
  125.       Begin VB.CommandButton Command16 
  126.          Caption         =   "Open"
  127.          Height          =   375
  128.          Left            =   0
  129.          TabIndex        =   43
  130.          Top             =   0
  131.          Width           =   735
  132.       End
  133.    End
  134.    Begin VB.Timer Timer5 
  135.       Interval        =   1000
  136.       Left            =   7440
  137.       Top             =   1080
  138.    End
  139.    Begin VB.Frame Frame3 
  140.       Caption         =   "timer work/break"
  141.       Height          =   1335
  142.       Left            =   7320
  143.       TabIndex        =   40
  144.       Top             =   720
  145.       Visible         =   0   'False
  146.       Width           =   1455
  147.       Begin VB.Timer Timer8 
  148.          Enabled         =   0   'False
  149.          Interval        =   10
  150.          Left            =   960
  151.          Top             =   840
  152.       End
  153.       Begin VB.Timer Timer7 
  154.          Enabled         =   0   'False
  155.          Interval        =   10
  156.          Left            =   960
  157.          Top             =   360
  158.       End
  159.       Begin VB.Timer Timer6 
  160.          Interval        =   20000
  161.          Left            =   120
  162.          Top             =   840
  163.       End
  164.    End
  165.    Begin VB.Timer Timer4 
  166.       Interval        =   10
  167.       Left            =   8880
  168.       Top             =   720
  169.    End
  170.    Begin VB.Timer Timer3 
  171.       Interval        =   10000
  172.       Left            =   8520
  173.       Top             =   240
  174.    End
  175.    Begin VB.Timer Timer2 
  176.       Interval        =   10
  177.       Left            =   8040
  178.       Top             =   240
  179.    End
  180.    Begin VB.TextBox Text11 
  181.       Height          =   285
  182.       Left            =   9120
  183.       TabIndex        =   39
  184.       Text            =   "1"
  185.       Top             =   240
  186.       Visible         =   0   'False
  187.       Width           =   255
  188.    End
  189.    Begin VB.PictureBox Picture2 
  190.       Height          =   4695
  191.       Left            =   0
  192.       ScaleHeight     =   4635
  193.       ScaleWidth      =   11835
  194.       TabIndex        =   38
  195.       Top             =   3600
  196.       Visible         =   0   'False
  197.       Width           =   11895
  198.    End
  199.    Begin VB.Timer Timer1 
  200.       Interval        =   1500
  201.       Left            =   7320
  202.       Top             =   240
  203.    End
  204.    Begin VB.TextBox Text10 
  205.       Height          =   4695
  206.       Left            =   0
  207.       MultiLine       =   -1  'True
  208.       ScrollBars      =   2  'Vertical
  209.       TabIndex        =   37
  210.       Top             =   3600
  211.       Visible         =   0   'False
  212.       Width           =   11850
  213.    End
  214.    Begin VB.CheckBox Check1 
  215.       Caption         =   "Save password"
  216.       Height          =   255
  217.       Left            =   1560
  218.       TabIndex        =   36
  219.       Top             =   3240
  220.       Visible         =   0   'False
  221.       Width           =   1455
  222.    End
  223.    Begin VB.OptionButton Option2 
  224.       Caption         =   "OFF"
  225.       Height          =   255
  226.       Left            =   840
  227.       TabIndex        =   35
  228.       Top             =   3240
  229.       Value           =   -1  'True
  230.       Visible         =   0   'False
  231.       Width           =   615
  232.    End
  233.    Begin VB.OptionButton Option1 
  234.       Caption         =   "ON"
  235.       Height          =   255
  236.       Left            =   120
  237.       TabIndex        =   34
  238.       Top             =   3240
  239.       Visible         =   0   'False
  240.       Width           =   615
  241.    End
  242.    Begin VB.CommandButton Command15 
  243.       Caption         =   "OK"
  244.       Height          =   255
  245.       Left            =   5640
  246.       TabIndex        =   33
  247.       Top             =   2880
  248.       Visible         =   0   'False
  249.       Width           =   375
  250.    End
  251.    Begin VB.CommandButton Command14 
  252.       Caption         =   "OK"
  253.       Height          =   255
  254.       Left            =   2640
  255.       TabIndex        =   32
  256.       Top             =   2880
  257.       Visible         =   0   'False
  258.       Width           =   375
  259.    End
  260.    Begin VB.TextBox Text9 
  261.       Height          =   285
  262.       IMEMode         =   3  'DISABLE
  263.       Left            =   4800
  264.       MaxLength       =   10
  265.       PasswordChar    =   "*"
  266.       TabIndex        =   31
  267.       Top             =   2880
  268.       Visible         =   0   'False
  269.       Width           =   735
  270.    End
  271.    Begin VB.TextBox Text8 
  272.       Height          =   285
  273.       IMEMode         =   3  'DISABLE
  274.       Left            =   1800
  275.       MaxLength       =   10
  276.       PasswordChar    =   "*"
  277.       TabIndex        =   29
  278.       Top             =   2880
  279.       Visible         =   0   'False
  280.       Width           =   735
  281.    End
  282.    Begin VB.PictureBox Picture1 
  283.       Height          =   2055
  284.       Left            =   2160
  285.       ScaleHeight     =   1995
  286.       ScaleWidth      =   4995
  287.       TabIndex        =   27
  288.       Top             =   240
  289.       Visible         =   0   'False
  290.       Width           =   5055
  291.    End
  292.    Begin VB.TextBox Text7 
  293.       Height          =   2055
  294.       Left            =   2160
  295.       MultiLine       =   -1  'True
  296.       TabIndex        =   26
  297.       Top             =   240
  298.       Visible         =   0   'False
  299.       Width           =   5055
  300.    End
  301.    Begin VB.TextBox Text6 
  302.       Height          =   2055
  303.       Left            =   2160
  304.       MultiLine       =   -1  'True
  305.       TabIndex        =   25
  306.       Top             =   240
  307.       Visible         =   0   'False
  308.       Width           =   5055
  309.    End
  310.    Begin VB.TextBox Text5 
  311.       Height          =   2055
  312.       Left            =   2160
  313.       MultiLine       =   -1  'True
  314.       TabIndex        =   24
  315.       Top             =   240
  316.       Visible         =   0   'False
  317.       Width           =   5055
  318.    End
  319.    Begin VB.TextBox Text4 
  320.       Height          =   2055
  321.       Left            =   2160
  322.       MultiLine       =   -1  'True
  323.       TabIndex        =   23
  324.       Top             =   240
  325.       Visible         =   0   'False
  326.       Width           =   5055
  327.    End
  328.    Begin VB.TextBox Text3 
  329.       Height          =   2055
  330.       Left            =   2160
  331.       MultiLine       =   -1  'True
  332.       TabIndex        =   22
  333.       Top             =   240
  334.       Visible         =   0   'False
  335.       Width           =   5055
  336.    End
  337.    Begin VB.TextBox Text2 
  338.       Height          =   2055
  339.       Left            =   2160
  340.       MultiLine       =   -1  'True
  341.       TabIndex        =   21
  342.       Top             =   240
  343.       Visible         =   0   'False
  344.       Width           =   5055
  345.    End
  346.    Begin VB.CommandButton Command13 
  347.       Caption         =   "7"
  348.       Height          =   375
  349.       Left            =   5040
  350.       TabIndex        =   15
  351.       Top             =   2400
  352.       Width           =   495
  353.    End
  354.    Begin VB.CommandButton Command12 
  355.       Caption         =   "6"
  356.       Height          =   375
  357.       Left            =   4560
  358.       TabIndex        =   14
  359.       Top             =   2400
  360.       Width           =   495
  361.    End
  362.    Begin VB.CommandButton Command11 
  363.       Caption         =   "5"
  364.       Height          =   375
  365.       Left            =   4080
  366.       TabIndex        =   13
  367.       Top             =   2400
  368.       Width           =   495
  369.    End
  370.    Begin VB.CommandButton Command10 
  371.       Caption         =   "4"
  372.       Height          =   375
  373.       Left            =   3600
  374.       TabIndex        =   12
  375.       Top             =   2400
  376.       Width           =   495
  377.    End
  378.    Begin VB.CommandButton Command9 
  379.       Caption         =   "3"
  380.       Height          =   375
  381.       Left            =   3120
  382.       TabIndex        =   11
  383.       Top             =   2400
  384.       Width           =   495
  385.    End
  386.    Begin VB.CommandButton Command8 
  387.       Caption         =   "2"
  388.       Height          =   375
  389.       Left            =   2640
  390.       TabIndex        =   10
  391.       Top             =   2400
  392.       Width           =   495
  393.    End
  394.    Begin VB.CommandButton Command7 
  395.       Caption         =   "1"
  396.       Height          =   375
  397.       Left            =   2160
  398.       TabIndex        =   9
  399.       Top             =   2400
  400.       Width           =   495
  401.    End
  402.    Begin VB.TextBox Text1 
  403.       Height          =   2055
  404.       Left            =   2160
  405.       MultiLine       =   -1  'True
  406.       TabIndex        =   8
  407.       Top             =   240
  408.       Width           =   5055
  409.    End
  410.    Begin VB.Frame Frame2 
  411.       Caption         =   "Options"
  412.       Height          =   1335
  413.       Left            =   0
  414.       TabIndex        =   1
  415.       Top             =   1440
  416.       Width           =   2055
  417.       Begin VB.CommandButton Command6 
  418.          Caption         =   "Print"
  419.          Height          =   495
  420.          Left            =   1320
  421.          TabIndex        =   7
  422.          Top             =   720
  423.          Width           =   615
  424.       End
  425.       Begin VB.CommandButton Command5 
  426.          Caption         =   "Option"
  427.          Height          =   495
  428.          Left            =   720
  429.          TabIndex        =   6
  430.          Top             =   720
  431.          Width           =   615
  432.       End
  433.       Begin VB.CommandButton Command4 
  434.          Caption         =   "Pass- word"
  435.          Height          =   495
  436.          Left            =   120
  437.          TabIndex        =   5
  438.          Top             =   720
  439.          Width           =   615
  440.       End
  441.       Begin VB.CommandButton Command3 
  442.          Caption         =   "Large"
  443.          Height          =   495
  444.          Left            =   1320
  445.          TabIndex        =   4
  446.          Top             =   240
  447.          Width           =   615
  448.       End
  449.       Begin VB.CommandButton Command2 
  450.          Caption         =   "Comp- act"
  451.          Height          =   495
  452.          Left            =   720
  453.          TabIndex        =   3
  454.          Top             =   240
  455.          Width           =   615
  456.       End
  457.       Begin VB.CommandButton Command1 
  458.          Caption         =   "Min"
  459.          Height          =   495
  460.          Left            =   120
  461.          Style           =   1  'Graphical
  462.          TabIndex        =   2
  463.          Top             =   240
  464.          Width           =   615
  465.       End
  466.    End
  467.    Begin VB.Frame Frame1 
  468.       BackColor       =   &H8000000B&
  469.       Caption         =   "InfoScreen"
  470.       Height          =   1215
  471.       Left            =   0
  472.       TabIndex        =   0
  473.       Top             =   120
  474.       Width           =   2055
  475.       Begin VB.Label Label5 
  476.          Alignment       =   2  'Center
  477.          Caption         =   "No password entered"
  478.          Height          =   255
  479.          Left            =   120
  480.          TabIndex        =   20
  481.          Top             =   840
  482.          Width           =   1815
  483.       End
  484.       Begin VB.Label Label4 
  485.          Alignment       =   2  'Center
  486.          Caption         =   "Good day"
  487.          ForeColor       =   &H00C00000&
  488.          Height          =   255
  489.          Left            =   120
  490.          TabIndex        =   19
  491.          Top             =   600
  492.          Width           =   1815
  493.       End
  494.       Begin VB.Label Label3 
  495.          Alignment       =   2  'Center
  496.          Caption         =   "TEXT 1"
  497.          BeginProperty Font 
  498.             Name            =   "MS Sans Serif"
  499.             Size            =   8.25
  500.             Charset         =   0
  501.             Weight          =   700
  502.             Underline       =   0   'False
  503.             Italic          =   0   'False
  504.             Strikethrough   =   0   'False
  505.          EndProperty
  506.          ForeColor       =   &H00008000&
  507.          Height          =   255
  508.          Left            =   120
  509.          TabIndex        =   18
  510.          Top             =   360
  511.          Width           =   1815
  512.       End
  513.       Begin VB.Label Label2 
  514.          Caption         =   "Work"
  515.          BeginProperty Font 
  516.             Name            =   "MS Sans Serif"
  517.             Size            =   8.25
  518.             Charset         =   0
  519.             Weight          =   700
  520.             Underline       =   0   'False
  521.             Italic          =   0   'False
  522.             Strikethrough   =   0   'False
  523.          EndProperty
  524.          ForeColor       =   &H000000FF&
  525.          Height          =   255
  526.          Left            =   1080
  527.          TabIndex        =   17
  528.          Top             =   0
  529.          Width           =   495
  530.       End
  531.    End
  532.    Begin VB.Label Label9 
  533.       Caption         =   "Prevent in                 mins."
  534.       Height          =   255
  535.       Left            =   3120
  536.       TabIndex        =   49
  537.       Top             =   3240
  538.       Visible         =   0   'False
  539.       Width           =   1935
  540.    End
  541.    Begin VB.Label Label8 
  542.       Caption         =   "0"
  543.       Height          =   255
  544.       Left            =   8880
  545.       TabIndex        =   41
  546.       Top             =   1200
  547.       Visible         =   0   'False
  548.       Width           =   495
  549.    End
  550.    Begin VB.Label Label7 
  551.       Caption         =   "Enter the password ->"
  552.       Height          =   255
  553.       Left            =   3120
  554.       TabIndex        =   30
  555.       Top             =   2880
  556.       Visible         =   0   'False
  557.       Width           =   1575
  558.    End
  559.    Begin VB.Label Label6 
  560.       Caption         =   "Choose a password ->"
  561.       Height          =   255
  562.       Left            =   120
  563.       TabIndex        =   28
  564.       Top             =   2880
  565.       Visible         =   0   'False
  566.       Width           =   1575
  567.    End
  568.    Begin VB.Label Label1 
  569.       Alignment       =   2  'Center
  570.       Caption         =   "Gathering Production"
  571.       BeginProperty Font 
  572.          Name            =   "MS Sans Serif"
  573.          Size            =   8.25
  574.          Charset         =   0
  575.          Weight          =   700
  576.          Underline       =   0   'False
  577.          Italic          =   0   'False
  578.          Strikethrough   =   0   'False
  579.       EndProperty
  580.       ForeColor       =   &H00800000&
  581.       Height          =   375
  582.       Left            =   5640
  583.       TabIndex        =   16
  584.       Top             =   2400
  585.       Width           =   1575
  586.    End
  587.    Begin VB.Line Line2 
  588.       X1              =   4440
  589.       X2              =   9480
  590.       Y1              =   0
  591.       Y2              =   0
  592.    End
  593.    Begin VB.Line Line1 
  594.       X1              =   0
  595.       X2              =   4920
  596.       Y1              =   0
  597.       Y2              =   0
  598.    End
  599.    Begin VB.Menu fichier 
  600.       Caption         =   "File"
  601.       Begin VB.Menu erase 
  602.          Caption         =   "Erase"
  603.          Begin VB.Menu t1 
  604.             Caption         =   "Text1"
  605.          End
  606.          Begin VB.Menu t2 
  607.             Caption         =   "Text2"
  608.          End
  609.          Begin VB.Menu t3 
  610.             Caption         =   "Text3"
  611.          End
  612.          Begin VB.Menu t4 
  613.             Caption         =   "Text4"
  614.          End
  615.          Begin VB.Menu t5 
  616.             Caption         =   "Text5"
  617.          End
  618.          Begin VB.Menu t6 
  619.             Caption         =   "Text6"
  620.          End
  621.          Begin VB.Menu t7 
  622.             Caption         =   "Text7"
  623.          End
  624.       End
  625.       Begin VB.Menu quit 
  626.          Caption         =   "Quit"
  627.          Shortcut        =   ^Q
  628.       End
  629.    End
  630.    Begin VB.Menu pr
  631. rances 
  632.       Caption         =   "Preferences"
  633.       Begin VB.Menu ct 
  634.          Caption         =   "Text color"
  635.          Begin VB.Menu n 
  636.             Caption         =   "Black"
  637.          End
  638.          Begin VB.Menu r 
  639.             Caption         =   "Red"
  640.          End
  641.       End
  642.       Begin VB.Menu cf 
  643.          Caption         =   "Font color"
  644.          Begin VB.Menu b 
  645.             Caption         =   "White"
  646.          End
  647.          Begin VB.Menu v 
  648.             Caption         =   "Green"
  649.          End
  650.       End
  651.    End
  652. Attribute VB_Name = "Form1"
  653. Attribute VB_GlobalNameSpace = False
  654. Attribute VB_Creatable = False
  655. Attribute VB_PredeclaredId = True
  656. Attribute VB_Exposed = False
  657. Private Sub b_Click()
  658. Text1.BackColor = &HFFFFFF
  659. Text2.BackColor = &HFFFFFF
  660. Text3.BackColor = &HFFFFFF
  661. Text4.BackColor = &HFFFFFF
  662. Text5.BackColor = &HFFFFFF
  663. Text6.BackColor = &HFFFFFF
  664. Text7.BackColor = &HFFFFFF
  665. End Sub
  666. Private Sub Check1_Click()
  667. Text9.Text = Text8.Text
  668. End Sub
  669. Private Sub Command1_Click()
  670. If Form1.WindowState = 0 Then
  671. End If
  672. If Option1.Value = True Then
  673. Form1.Height = 4230
  674. End If
  675. Form1.WindowState = 1
  676. If Option1.Value = True Then
  677. Label7.Visible = True
  678. Text9.Visible = True
  679. Command15.Visible = True
  680. Picture1.Visible = True
  681. Picture2.Visible = True
  682. Command4.Enabled = False
  683. Form4.Text1.Visible = False
  684. End If
  685. End Sub
  686. Private Sub Command10_Click()
  687. Label3.Caption = "TEXT 4"
  688. Text1.Visible = False
  689. Text2.Visible = False
  690. Text3.Visible = False
  691. Text4.Visible = True
  692. Text5.Visible = False
  693. Text6.Visible = False
  694. Text7.Visible = False
  695. End Sub
  696. Private Sub Command11_Click()
  697. Label3.Caption = "TEXT 5"
  698. Text1.Visible = False
  699. Text2.Visible = False
  700. Text3.Visible = False
  701. Text4.Visible = False
  702. Text5.Visible = True
  703. Text6.Visible = False
  704. Text7.Visible = False
  705. End Sub
  706. Private Sub Command12_Click()
  707. Label3.Caption = "TEXT 6"
  708. Text1.Visible = False
  709. Text2.Visible = False
  710. Text3.Visible = False
  711. Text4.Visible = False
  712. Text5.Visible = False
  713. Text6.Visible = True
  714. Text7.Visible = False
  715. End Sub
  716. Private Sub Command13_Click()
  717. Label3.Caption = "TEXT 7"
  718. Text1.Visible = False
  719. Text2.Visible = False
  720. Text3.Visible = False
  721. Text4.Visible = False
  722. Text5.Visible = False
  723. Text6.Visible = False
  724. Text7.Visible = True
  725. End Sub
  726. Private Sub Command14_Click()
  727. If Form1.WindowState = 2 Then Form1.WindowState = 0
  728. If Form1.WindowState = 0 Then
  729. Label6.Visible = False
  730. Text8.Visible = False
  731. Command14.Visible = False
  732. Option1.Visible = False
  733. Option2.Visible = False
  734. Check1.Visible = False
  735. Form1.Height = 3480
  736. End If
  737. End Sub
  738. Private Sub Command15_Click()
  739. If Text9.Text = Text8.Text Then
  740. Text9.Text = ""
  741. Command4.Enabled = True
  742. Label7.Visible = False
  743. Text9.Visible = False
  744. Command15.Visible = False
  745. Picture1.Visible = False
  746. Picture2.Visible = False
  747. Form1.Height = 3480
  748. Form4.Text1.Visible = True
  749. End If
  750. End Sub
  751. Private Sub command16_Click()
  752.     Dim Filtre, LeFichier
  753.     dlg.CancelError = True
  754.     dlg.DialogTitle = "Ouvrir un fichier texte"
  755.     dlg.filename = "*.txt"
  756.     Filtre = "Textes (*.txt)|*.txt|Informations (*.moi;*.me)|"
  757.     Filtre = Filtre + "Tous les fichiers (*.*)|*.*"
  758.     dlg.Filter = Filtre
  759.     dlg.Flags = cdlOFNFileMustExist Or cdlOFNPathMustExist
  760.     On Error Resume Next
  761.     dlg.ShowOpen
  762.     If Err <> cdlCancel Then
  763.         Me.Caption = dlg.FileTitle
  764.         LeFichier = dlg.filename
  765.         Open LeFichier For Input As #1
  766.         If Err Then
  767.             MsgBox "Impossible d'ouvrir le fichier: " + LeFichier
  768.             Exit Sub
  769.         End If
  770.         
  771.         Screen.MousePointer = 11
  772.         
  773.         Text1.Text = Input$(LOF(1), 1)
  774.         Close #1
  775.         
  776.         Screen.MousePointer = 0
  777.     End If
  778.     On Error GoTo 0
  779. End Sub
  780. Private Sub Command17_Click()
  781.     Dim Filtre, LeFichier
  782.     If Len(Text1.Text) = 0 Then Exit Sub
  783.     dlg.CancelError = True
  784.     dlg.DialogTitle = "Enregistrer un fichier texte"
  785.     dlg.filename = "*.txt"
  786.     dlg.DefaultExt = "txt"
  787.     Filtre = "Textes (*.txt)|*.txt|Tous les fichiers (*.*)|*.*"
  788.     dlg.Filter = Filtre
  789.     dlg.Flags = cdlOFNOverwritePrompt Or cdlOFNPathMustExist Or cdlOFNLongNames
  790.     On Error Resume Next
  791.     dlg.ShowSave
  792.     If Err <> cdlCancel Then
  793.         LeFichier = dlg.filename
  794.         Open LeFichier For Output As #1
  795.         If Err Then
  796.             MsgBox "Impossible d'ouvrir le fichier: " + LeFichier
  797.             Exit Sub
  798.         End If
  799.       
  800.         Screen.MousePointer = 11
  801.        
  802.         Print #1, Text1.Text
  803.         Close #1
  804.      
  805.         Screen.MousePointer = 0
  806.     End If
  807.     On Error GoTo 0
  808. End Sub
  809. Private Sub Command18_Click()
  810. Label9.Visible = True
  811. Combo1.Visible = True
  812. Command22.Visible = True
  813. End Sub
  814. Private Sub Command19_Click()
  815. Label5.Caption = "Version 2.052"
  816. End Sub
  817. Private Sub Command2_Click()
  818. Form1.WindowState = 0
  819. Text10.Visible = False
  820. If Label3.Caption = "TEXT 1" Then Text1.Text = Text10.Text
  821. If Label3.Caption = "TEXT 2" Then Text2.Text = Text10.Text
  822. If Label3.Caption = "TEXT 3" Then Text3.Text = Text10.Text
  823. If Label3.Caption = "TEXT 4" Then Text4.Text = Text10.Text
  824. If Label3.Caption = "TEXT 5" Then Text5.Text = Text10.Text
  825. If Label3.Caption = "TEXT 6" Then Text6.Text = Text10.Text
  826. If Label3.Caption = "TEXT 7" Then Text7.Text = Text10.Text
  827. End Sub
  828. Private Sub Command20_Click()
  829. Form3.Show
  830. End Sub
  831. Private Sub Command21_Click()
  832. If Form1.WindowState = 2 Then Form1.WindowState = 0
  833. If Form1.WindowState = 0 Then
  834. Picture3.Visible = False
  835. Form1.Height = 3480
  836. End If
  837. End Sub
  838. Private Sub Command22_Click()
  839. If Combo1.Text = 10 Then
  840. Text12.Text = 600
  841. End If
  842. If Combo1.Text = 20 Then
  843. Text12.Text = 1200
  844. End If
  845. If Combo1.Text = 30 Then
  846. Text12.Text = 1800
  847. End If
  848. If Combo1.Text = 40 Then
  849. Text12.Text = 2400
  850. End If
  851. If Combo1.Text = 50 Then
  852. Text12.Text = 3000
  853. End If
  854. If Combo1.Text = 60 Then
  855. Text12.Text = 3600
  856. End If
  857. If Combo1.Text = 70 Then
  858. Text12.Text = 4200
  859. End If
  860. If Combo1.Text = 80 Then
  861. Text12.Text = 4800
  862. End If
  863. If Combo1.Text = 90 Then
  864. Text12.Text = 5400
  865. End If
  866. Timer9.Enabled = True
  867. Label9.Visible = False
  868. Combo1.Visible = False
  869. Command22.Visible = False
  870. End Sub
  871. Private Sub Command23_Click()
  872. Printer.Print Text1.Text
  873. End Sub
  874. Private Sub Command3_Click()
  875. Form4.Show
  876. If Label3.Caption = "TEXT 1" Then Form4.Text1.Text = Text1.Text
  877. If Label3.Caption = "TEXT 2" Then Form4.Text1.Text = Text2.Text
  878. If Label3.Caption = "TEXT 3" Then Form4.Text1.Text = Text3.Text
  879. If Label3.Caption = "TEXT 4" Then Form4.Text1.Text = Text4.Text
  880. If Label3.Caption = "TEXT 5" Then Form4.Text1.Text = Text5.Text
  881. If Label3.Caption = "TEXT 6" Then Form4.Text1.Text = Text6.Text
  882. If Label3.Caption = "TEXT 7" Then Form4.Text1.Text = Text7.Text
  883. End Sub
  884. Private Sub Command4_Click()
  885. Option1.Value = True
  886. Option2.Value = False
  887. Label6.Visible = True
  888. Text8.Visible = True
  889. Command14.Visible = True
  890. Option1.Visible = True
  891. Option2.Visible = True
  892. Check1.Visible = True
  893. If Form1.WindowState = 0 Then
  894. Form1.Height = 4230
  895. End If
  896. End Sub
  897. Private Sub Command5_Click()
  898. Picture3.Visible = True
  899. Form1.Height = 4470
  900. End Sub
  901. Private Sub Command6_Click()
  902. Form2.Show
  903. If Label3.Caption = "TEXT 1" Then Form2.Text1.Text = Form1.Text1.Text
  904. If Label3.Caption = "TEXT 2" Then Form2.Text1.Text = Form1.Text2.Text
  905. If Label3.Caption = "TEXT 3" Then Form2.Text1.Text = Form1.Text3.Text
  906. If Label3.Caption = "TEXT 4" Then Form2.Text1.Text = Form1.Text4.Text
  907. If Label3.Caption = "TEXT 5" Then Form2.Text1.Text = Form1.Text5.Text
  908. If Label3.Caption = "TEXT 6" Then Form2.Text1.Text = Form1.Text6.Text
  909. If Label3.Caption = "TEXT 7" Then Form2.Text1.Text = Form1.Text7.Text
  910. End Sub
  911. Private Sub Command7_Click()
  912. Label3.Caption = "TEXT 1"
  913. Text1.Visible = True
  914. Text2.Visible = False
  915. Text3.Visible = False
  916. Text4.Visible = False
  917. Text5.Visible = False
  918. Text6.Visible = False
  919. Text7.Visible = False
  920. End Sub
  921. Private Sub Command8_Click()
  922. Label3.Caption = "TEXT 2"
  923. Text1.Visible = False
  924. Text2.Visible = True
  925. Text3.Visible = False
  926. Text4.Visible = False
  927. Text5.Visible = False
  928. Text6.Visible = False
  929. Text7.Visible = False
  930. End Sub
  931. Private Sub Command9_Click()
  932. Label3.Caption = "TEXT 3"
  933. Text1.Visible = False
  934. Text2.Visible = False
  935. Text3.Visible = True
  936. Text4.Visible = False
  937. Text5.Visible = False
  938. Text6.Visible = False
  939. Text7.Visible = False
  940. End Sub
  941. Private Sub n_Click()
  942. Text1.ForeColor = &H0&
  943. Text2.ForeColor = &H0&
  944. Text3.ForeColor = &H0&
  945. Text4.ForeColor = &H0&
  946. Text5.ForeColor = &H0&
  947. Text6.ForeColor = &H0&
  948. Text7.ForeColor = &H0&
  949. End Sub
  950. Private Sub quit_Click()
  951. Unload Me
  952. Unload Form2
  953. Unload Form4
  954. End Sub
  955. Private Sub r_Click()
  956. Text1.ForeColor = &HFF&
  957. Text2.ForeColor = &HFF&
  958. Text3.ForeColor = &HFF&
  959. Text4.ForeColor = &HFF&
  960. Text5.ForeColor = &HFF&
  961. Text6.ForeColor = &HFF&
  962. Text7.ForeColor = &HFF&
  963. End Sub
  964. Private Sub t1_Click()
  965. Text1.Text = ""
  966. End Sub
  967. Private Sub t2_Click()
  968. Text2.Text = ""
  969. End Sub
  970. Private Sub t3_Click()
  971. Text3.Text = ""
  972. End Sub
  973. Private Sub t4_Click()
  974. Text4.Text = ""
  975. End Sub
  976. Private Sub t5_Click()
  977. Text5.Text = ""
  978. End Sub
  979. Private Sub t6_Click()
  980. Text6.Text = ""
  981. End Sub
  982. Private Sub t7_Click()
  983. Text7.Text = ""
  984. End Sub
  985. Private Sub Timer1_Timer()
  986. If Option1.Value = True Then
  987. Label5.Caption = "Password entered"
  988. ElseIf Option1.Value = False Then
  989. Label5.Caption = " No password entered"
  990. End If
  991. End Sub
  992. Private Sub Timer10_Timer()
  993. If Text12.Text = 60 * Text13.Text Then Beep
  994. End Sub
  995. Private Sub Timer11_Timer()
  996. If Form1.WindowState = 2 Then Command5.Enabled = False
  997. If Form1.WindowState = 0 Then Command5.Enabled = True
  998. End Sub
  999. Private Sub Timer2_Timer()
  1000. If Text11.Text > 3 Then
  1001. Text11.Text = 1
  1002. End If
  1003. End Sub
  1004. Private Sub Timer3_Timer()
  1005. yo = Text11.Text
  1006. Text11.Text = yo + 1
  1007. End Sub
  1008. Private Sub Timer4_Timer()
  1009. If Text11.Text = "1" Then Label4.Caption = "Good day"
  1010. If Text11.Text = "2" Then Label4.Caption = "You're using WorkStation"
  1011. If Text11.Text = "99" Then Label4.Caption = "Version 1.052"
  1012. If Text11.Text = "3" Then Label4.Caption = "perrier@microtec.net"
  1013. End Sub
  1014. Private Sub Timer5_Timer()
  1015. temps = Label8.Caption
  1016. Label8.Caption = temps + 1
  1017. End Sub
  1018. Private Sub Timer6_Timer()
  1019. If Label2.Caption = "Work" Then Timer7.Enabled = True
  1020. If Label2.Caption = "Break" Then Timer8.Enabled = True
  1021. End Sub
  1022. Private Sub Timer7_Timer()
  1023. If Label8.Caption > 3600 Then
  1024. Label2.Caption = "Break"
  1025. Label8.Caption = "0"
  1026. End If
  1027. Timer7.Enabled = False
  1028. End Sub
  1029. Private Sub Timer8_Timer()
  1030. If Label8.Caption > 300 Then
  1031. Label2.Caption = "Work"
  1032. Label8.Caption = "0"
  1033. End If
  1034. Timer8.Enabled = False
  1035. End Sub
  1036. Private Sub Timer9_Timer()
  1037. If Text12.Text = 0 Then Beep
  1038. If Text12.Text = 0 Then Timer9.Enabled = False
  1039. If Text12.Text = 0 Then Beep
  1040. If Text12.Text = 0 Then Beep
  1041. If Text12.Text = 0 Then Beep
  1042. If Text12.Text = 0 Then Beep
  1043. If Text12.Text = 0 Then Beep
  1044. If Text12.Text = 0 Then Beep
  1045. If Text12.Text = 0 Then Beep
  1046. If Text12.Text = 0 Then Beep
  1047. If Text12.Text = 0 Then Beep
  1048. If Text12.Text = 0 Then Beep
  1049. If Text12.Text = 0 Then Beep
  1050. If Text12.Text = 0 Then Beep
  1051. If Text12.Text = 0 Then Beep
  1052. If Text12.Text = 0 Then Beep
  1053. If Text12.Text = 0 Then Beep
  1054. If Text12.Text = 0 Then Beep
  1055. If Text12.Text = 0 Then Beep
  1056. cool = Text12.Text
  1057. Text12.Text = cool - 1
  1058. End Sub
  1059. Private Sub v_Click()
  1060. Text1.BackColor = &HFF00&
  1061. Text2.BackColor = &HFF00&
  1062. Text3.BackColor = &HFF00&
  1063. Text4.BackColor = &HFF00&
  1064. Text5.BackColor = &HFF00&
  1065. Text6.BackColor = &HFF00&
  1066. Text7.BackColor = &HFF00&
  1067. End Sub
  1068.